


Ext.define('DDMS.view.UpdateAccount', {
    extend: 'Ext.form.Panel',
    
    id:'updateAccount',
    config: {
    	defaults: {
            width:'90%'
        },
        layout: {
            type: 'vbox',
            align:'center'
        },
        scrollable:false,
        items: [
            {
                xtype: 'fieldset',
                defaults: {
                	height:50,
                    labelWidth: '27%',
		            style:'font-size:14pt;'
		        },
		        title:'<div style="text-align:left;font-size:16pt;">基本信息</div>',
		        instructions:' ',
                items: [
                    {
                        xtype: 'textfield',
                        readOnly:true,
                        label: '姓名',
                        value:'测试账户'
                    },
                    {
                        xtype: 'selectfield',
                        readOnly:true,
                        label: '性别',
                        options: [
                            {
                                text : '男',
                                value: '0'
                            },
                            {
                                text : '女',
                                value: '1'
                            }
                        ]
                    },
                    {
                        xtype: 'textfield',
                        readOnly:true,
                        label: '手机号码',
                        value:'13208899945'
                    }
                ]
            },
             {
                xtype: 'fieldset',
                defaults: {
                	height:50,
                    labelWidth: '27%',
		            style:'font-size:14pt;'
		        },
		        title:'<div style="text-align:left;font-size:16pt;">登录信息</div>',
		        instructions:' ',
                items: [
                    {
                        xtype: 'textfield',
                        readOnly:true,
                        label: '用户名',
                        value:'administrator'
                    },
                    {
                        xtype: 'passwordfield',
                        label: '旧密码'
                    },
                    {
                        xtype: 'passwordfield',
                        label: '新密码'
                    },
                    {
                        xtype: 'passwordfield',
                        label: '确认密码'
                    }
                ]
            },
            {
                xtype: 'fieldset',
                defaults: {
                	height:50,
                    labelWidth: '27%',
		            style:'font-size:14pt;'
		        },
		        title:'<div style="text-align:left;font-size:16pt;">详细信息</div>',
		        instructions:'<div style="font-size:13pt;">确认输入信息完全正确，点击修改按钮完成修改。<br><br>',
                items: [
                	{
                        xtype: 'textfield',
                        readOnly:true,
                        label: '部门',
                        value:'云南电网信息部'
                    },
                    {
                        xtype: 'textfield',
                        readOnly:true,
                        label: '专业类别',
                        value:'信息技术'
                    },
                    {
                        xtype: 'textfield',
                        readOnly:true,
                        label: '电子邮件',
                        value:'jojin@gmail.com'
                    },
                    {
                        xtype: 'emailfield',
                        readOnly:true,
                        label: '详细地址',
                        value:'云南省-官渡区-春城路'
                    }
                ]
            },
            {
                xtype: 'button',
                height:60,
                text: '<font size=5>修改</font>',
                ui: 'confirm',
                handler:function(){
                	Ext.Msg.alert("信息提示","修改账户成功!");
                }
            }
        ]
    }
});